//
//  UITextFieldHelper.h
//  Kaagad Peso
//
//  Created by ZhengChengFeng on 2024/10/16.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UITextFieldHelper : UITextField<UITextFieldDelegate>

@property (nonatomic, strong) UIButton * clearButton;

@property (nonatomic, assign) BOOL drawLeftLine;
@property (nonatomic, assign) BOOL drawRightLine;
@property (nonatomic, assign) BOOL drawTopLine;
@property (nonatomic, assign) BOOL drawBottomLine;
@property (nonatomic, assign) CGFloat lineWidth;
@property (nonatomic, strong) UIColor * lineColor;
@property (nonatomic, assign) NSInteger limitedCount;

- (void)addLeftViewWithImageName:(NSString *)imageName leftMargin:(CGFloat)leftMargin leftViewMode:(UITextFieldViewMode)leftViewMode;

- (void)addLeftViewWithTitle:(NSString *)title leftMargin:(CGFloat)leftMargin leftWidth:(CGFloat)leftWidth leftColor:(UIColor *)textColor leftFont:(UIFont *)font leftViewMode:(UITextFieldViewMode)leftViewMode;

- (void)addClearButtonWithRightMargin:(CGFloat)rightMargin imageName:(NSString *)imageName;


@end

NS_ASSUME_NONNULL_END
